/**
 * @ClassName DwdRydwAlarmDetailMapper
 * @Description
 * @Author halo
 * @Date 2024/8/28 15:12
 **/
package net.hn.hnms.biz.gasext.dws.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import net.hn.hnms.biz.gasext.dws.domain.dto.AlarmDetailDto;
import net.hn.hnms.biz.gasext.dws.domain.vo.AlarmDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS(value = "dwd")
public interface DwdRydwAlarmDetailMapper {

    /**
     * 查询超员报警总数
     *
     * @param alarmDetailDto
     * @return
     */
    Integer selectAreaOvercrowdingTotal(@Param("mineCodeList") List<String> mineCodeList,
                                        @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询超员报警列表
     *
     * @param pageSize
     * @param pageNum
     * @param alarmDetailDto
     * @return
     */
    List<AlarmDetailVO> selectAreaOvercrowdingList(@Param("pageSize") Integer pageSize,
                                                   @Param("pageNum") Integer pageNum,
                                                   @Param("mineCodeList") List<String> mineCodeList,
                                                   @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询超时报警总数
     *
     * @param alarmDetailDto
     * @return
     */
    Integer selectPersonOvertimeTotal(@Param("mineCodeList") List<String> mineCodeList,
                                      @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询超时报警列表
     *
     * @param pageSize
     * @param pageNum
     * @param alarmDetailDto
     * @return
     */
    List<AlarmDetailVO> selectPersonOvertimeList(@Param("pageSize") Integer pageSize,
                                                 @Param("pageNum") Integer pageNum,
                                                 @Param("mineCodeList") List<String> mineCodeList,
                                                 @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询人员求救总数
     *
     * @param alarmDetailDto
     * @return
     */
    Integer selectPersonHelpTotal(@Param("mineCodeList") List<String> mineCodeList,
                                  @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询人员求救列表
     *
     * @param pageSize
     * @param pageNum
     * @param alarmDetailDto
     * @return
     */
    List<AlarmDetailVO> selectPersonHelpList(@Param("pageSize") Integer pageSize,
                                             @Param("pageNum") Integer pageNum,
                                             @Param("mineCodeList") List<String> mineCodeList,
                                             @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询进入限制区域报警总数
     *
     * @param alarmDetailDto
     * @return
     */
    Integer selectAreaDisallowedTotal(@Param("mineCodeList") List<String> mineCodeList,
                                      @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    /**
     * 查询进入限制区域报警列表
     *
     * @param pageSize
     * @param pageNum
     * @param alarmDetailDto
     * @return
     */
    List<AlarmDetailVO> selectAreaDisallowedList(@Param("pageSize") Integer pageSize,
                                                 @Param("pageNum") Integer pageNum,
                                                 @Param("mineCodeList") List<String> mineCodeList,
                                                 @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);


    Integer selectAllTypeTotal(@Param("mineCodeList") List<String> mineCodeList,
                               @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);

    List<AlarmDetailVO> selectAllTypeList(@Param("pageSize") Integer pageSize,
                                          @Param("pageNum") Integer pageNum,
                                          @Param("mineCodeList") List<String> mineCodeList,
                                          @Param("alarmDetailDto") AlarmDetailDto alarmDetailDto);
}
